#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int main()
{
  pid_t id = fork();
  if(id < 0)
  {
    return 1;
  }
  else if(id > 0)
  {
    printf("father[%d] is sleeping...\n",getpid());
    sleep(30);
  }
  else
  {
    printf("child[%d] is become Z\n",getpid());
    sleep(8);
    exit(EXIT_SUCCESS);
  }
  return 0;
}
